//
//  CNDiscountCouponModel.m
//  BeeQuick_19
//
//  Created by clinging on 16/9/26.
//  Copyright © 2016年 CN Team. All rights reserved.
//

#import "CNDiscountModel.h"

@implementation CNDiscountModel
+ (instancetype)initWithDictionary:(NSDictionary *)dict{
    CNDiscountModel *model = [[CNDiscountModel alloc]init];
    
    [model setValuesForKeysWithDictionary:dict];
    
    return model;
}

- (void) setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        [self setValue:value forKey:@"desc"];
        return;
    }
    
    [super setValue:value forKey:key];
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{}

@end
